package com.xy.dp.command;

public class Tv {
    private int currentChannel = 0;

    public void turnOn() {
        System.out.println("The tv is on");
    }

    public void turnOff() {
        System.out.println("The tv is off");
    }

    public void changeChannel(int channel) {
        currentChannel = channel;
        System.out.println("now channel is " + currentChannel);
    }
}
